﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.DependencyInjection;
using Volo.Abp.MultiTenancy;

namespace GroupMeal.Brand
{
    public class BrandAppService(ICurrentTenant currentTenant) : ApplicationService, IBrandAppService, ITransientDependency
    {
        private readonly ICurrentTenant _currentTenat = currentTenant;

        public string GetTenantName()
        {
            if (string.IsNullOrEmpty(_currentTenat.Name))
            {
                return "智运平台端";
            }
            return _currentTenat.Name;
        }
    }
}
